package personal.dao.accounting;

import java.util.List;

import personal.domain.accounting.ExternalEntity;


public interface ExternalEntityDAO {
	/**
	 * Returns list of all external entities in database.
	 * @return List<ExternalEntity>
	 */
	public List<ExternalEntity> getAllExternalEntities();
	/**
	 * Saves (insert or update) an external entity.
	 * @param entity. External entity to be saved.
	 * @return ExternalEntity - Saved external entity with generated entity id (for inserts).
	 */
	public ExternalEntity saveExternalEntity(ExternalEntity entity);
	/**
	 * Returns a specific external entity.
	 * @param entityId. Id of the external entity to be returned.
	 * @return ExternalEntity.
	 */
	public ExternalEntity getEntity(Long entityId);
}
